package testing;

import java.util.logging.Level;
import java.util.logging.Logger;
import model.PengendaliMahasiswa;
import model.Yudisium;

public class TestTambahMahasiswa {

    public static void main(String[] args) {
        Yudisium test1 = new Yudisium();
        test1.setNama("Elsa");
        try {
            test1.setNim("115314011");
        } catch (Exception ex) {
            Logger.getLogger(TestTambahMahasiswa.class.getName()).log(Level.SEVERE, null, ex);
        }
        test1.setTelpEmail("0274883212");
        test1.setProdi("TI");
        test1.setPeriode("2011");
        test1.setHari("Selasa");
        test1.setTanggal("14");

        PengendaliMahasiswa.tambahMahasiswa(test1);
        PengendaliMahasiswa.tambahTabelMahasiswa(test1);
    

        Yudisium test2 = new Yudisium();
        test2.setNama("Lita");
        try {
            test2.setNim("114163571");
        } catch (Exception ex) {
            Logger.getLogger(TestTambahMahasiswa.class.getName()).log(Level.SEVERE, null, ex);
        }

        test2.setTelpEmail("77646784563");
        test2.setProdi("TI");
        test2.setPeriode("2011");
        test2.setHari("Rabu");
        test2.setTanggal("8");
        PengendaliMahasiswa.tambahMahasiswa(test2);
        PengendaliMahasiswa.tambahTabelMahasiswa(test2);
//        System.out.println(Yudisium.bacaDaftarMahasiswa());

    }
}
